package com.company.OfferGuide;

public class 左旋转字符串 {


    public String reverseLeftWords(String s, int n) {
        if (s == null || s.length() == 0) return "";
        if (n > s.length()) n = n % s.length();
        return s.substring(n) + s.substring(0,n);
    }

}
